package pl.register.android.group;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-14
 */
public enum GroupType {
    MORNING {
        @Override
        public String getName() {
            return "Poranna";
        }
    },
    AFTERNOON {
        @Override
        public String getName() {
            return "Popołudniowa";
        }
    },
    INTENSIVE {
        @Override
        public String getName() {
            return "Intensywna";
        }
    };

    public abstract String getName();

    public static List<GroupType> asList() {
        List<GroupType> groupTypes = new ArrayList<GroupType>();
        for (GroupType type : values()) {
            groupTypes.add(type);
        }
        return groupTypes;
    }
}
